<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>菜鸟教程(runoob.com)</title>
    <script src="../js/vue.min.js"></script>
</head>
<body>
<div id="app">
        <button v-on:click="say('hi')">Say hi</button>
        <button v-on:dblclick="say('what')">Say what</button>
    <select name="" id="" v-on:change="say('what')">
        <option value="1">1</option>
        <option value="2">2</option>
        <option value="2">3</option>
        <option value="3">4</option>
    </select>
    说明：v-on可以绑定dom事件，例如：input、click、
</div>
<script>
    new Vue({
        el: '#app',
        methods: {
            say: function (message) {
                alert(message);
            }
        }
    })
</script>
</body>
</html>
